<template>
	<view class="dis-type pt20">
		<my-button :fiexd="true" @confirm="submit">完成</my-button>
	</view>
</template>

<script>
export default {
	data() {
		return {
			list: [
				{
					label: '用户支付后自动打印',
					name: 1
				},
				{
					label: '商家接单后自动打印',
					name: 2
				}
			],
			formData: {
				ident: 'takeOutSet',
				printType: 1
			}
		};
	},
	methods: {
		valChange(msg) {
			console.log(msg);
			this.formData.boxMoney = msg;
		},
		submit() {
			this.util
				.request({
					url: this.api.strogConfig,
					method: 'POST',
					ct: true,
					data: this.formData
				})
				.then(res => {
					if (res.code == 1) {
						this.util.message('保存成功！', 3);
						setTimeout(() => {
							uni.navigateBack({
								delta: 1
							});
						}, 1000);
					}
				});
		}
	}
};
</script>

<style lang="scss" scoped>
.menu-label {
	width: 100%;
	padding: 20rpx 30rpx;

	.title {
		min-width: 120rpx;
	}

	.ma0 {
		/deep/.u-checkbox__label {
			margin: 0rpx;
		}
	}

	.ma1 {
		/deep/.u-checkbox__label {
			margin-right: 0rpx;
		}
		/deep/.u-radio__label {
			margin-right: 0rpx;
		}
	}
}
</style>
